<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>商家列表信息页面</title>
    <c:import url="hcommon.jsp"></c:import>
    <c:import url="header.jsp"></c:import>
    <c:import url="left.jsp"></c:import>

</head>
<body>
<div style="margin-top:80px ;margin-left: 240px">
    <div style="margin-left: 1200px">
    <form >
        <table class="table table-hover">
            <tr>
                <th>红包编号</th>
                <th>用户编号</th>
                <th>用户名称</th>
                <th>红包金额 </th>
                <th>开始时间 </th>
                <th>结束时间</th>
                <th>红包类型</th>
            </tr>
            <c:forEach var="inv" items="${list}">
                <tr>
                    <td>${inv.rid}</td>
                    <td>${inv.uid}</td>
                    <td>${inv.user.uname}</td>
                    <td>${inv.rmoney}</td>
                    <td>${inv.startdate}</td>
                    <td>${inv.endingdate}</td>
                    <td><a href="audit.action?sid=${inv.endingdate}">${inv.endingdate}</a></td>
                    <td><input onclick="javascript:location.href='toupdateStore.action?sid=${inv.rtype}'"
                               value="修改" type="button"/></td>
                </tr>
            </c:forEach>
            <tr align="center">
                <td colspan="10"><input
                        onclick="javascript:location.href='toaddStore.action'" value="添加"
                        type="button"/> </td>
            </tr>
        </table>
    </form>
    </div>
</div>
</body>
</html>
